package com.personal.pojo;

import java.util.ArrayList;
import java.util.List;

public class TReserveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TReserveExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReserveidIsNull() {
            addCriterion("reserveid is null");
            return (Criteria) this;
        }

        public Criteria andReserveidIsNotNull() {
            addCriterion("reserveid is not null");
            return (Criteria) this;
        }

        public Criteria andReserveidEqualTo(Integer value) {
            addCriterion("reserveid =", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidNotEqualTo(Integer value) {
            addCriterion("reserveid <>", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidGreaterThan(Integer value) {
            addCriterion("reserveid >", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidGreaterThanOrEqualTo(Integer value) {
            addCriterion("reserveid >=", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidLessThan(Integer value) {
            addCriterion("reserveid <", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidLessThanOrEqualTo(Integer value) {
            addCriterion("reserveid <=", value, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidIn(List<Integer> values) {
            addCriterion("reserveid in", values, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidNotIn(List<Integer> values) {
            addCriterion("reserveid not in", values, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidBetween(Integer value1, Integer value2) {
            addCriterion("reserveid between", value1, value2, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReserveidNotBetween(Integer value1, Integer value2) {
            addCriterion("reserveid not between", value1, value2, "reserveid");
            return (Criteria) this;
        }

        public Criteria andReservememIsNull() {
            addCriterion("reservemem is null");
            return (Criteria) this;
        }

        public Criteria andReservememIsNotNull() {
            addCriterion("reservemem is not null");
            return (Criteria) this;
        }

        public Criteria andReservememEqualTo(Integer value) {
            addCriterion("reservemem =", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememNotEqualTo(Integer value) {
            addCriterion("reservemem <>", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememGreaterThan(Integer value) {
            addCriterion("reservemem >", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememGreaterThanOrEqualTo(Integer value) {
            addCriterion("reservemem >=", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememLessThan(Integer value) {
            addCriterion("reservemem <", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememLessThanOrEqualTo(Integer value) {
            addCriterion("reservemem <=", value, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememIn(List<Integer> values) {
            addCriterion("reservemem in", values, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememNotIn(List<Integer> values) {
            addCriterion("reservemem not in", values, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememBetween(Integer value1, Integer value2) {
            addCriterion("reservemem between", value1, value2, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservememNotBetween(Integer value1, Integer value2) {
            addCriterion("reservemem not between", value1, value2, "reservemem");
            return (Criteria) this;
        }

        public Criteria andReservecoachIsNull() {
            addCriterion("reservecoach is null");
            return (Criteria) this;
        }

        public Criteria andReservecoachIsNotNull() {
            addCriterion("reservecoach is not null");
            return (Criteria) this;
        }

        public Criteria andReservecoachEqualTo(Integer value) {
            addCriterion("reservecoach =", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachNotEqualTo(Integer value) {
            addCriterion("reservecoach <>", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachGreaterThan(Integer value) {
            addCriterion("reservecoach >", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachGreaterThanOrEqualTo(Integer value) {
            addCriterion("reservecoach >=", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachLessThan(Integer value) {
            addCriterion("reservecoach <", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachLessThanOrEqualTo(Integer value) {
            addCriterion("reservecoach <=", value, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachIn(List<Integer> values) {
            addCriterion("reservecoach in", values, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachNotIn(List<Integer> values) {
            addCriterion("reservecoach not in", values, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachBetween(Integer value1, Integer value2) {
            addCriterion("reservecoach between", value1, value2, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservecoachNotBetween(Integer value1, Integer value2) {
            addCriterion("reservecoach not between", value1, value2, "reservecoach");
            return (Criteria) this;
        }

        public Criteria andReservestatesIsNull() {
            addCriterion("reservestates is null");
            return (Criteria) this;
        }

        public Criteria andReservestatesIsNotNull() {
            addCriterion("reservestates is not null");
            return (Criteria) this;
        }

        public Criteria andReservestatesEqualTo(String value) {
            addCriterion("reservestates =", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesNotEqualTo(String value) {
            addCriterion("reservestates <>", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesGreaterThan(String value) {
            addCriterion("reservestates >", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesGreaterThanOrEqualTo(String value) {
            addCriterion("reservestates >=", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesLessThan(String value) {
            addCriterion("reservestates <", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesLessThanOrEqualTo(String value) {
            addCriterion("reservestates <=", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesLike(String value) {
            addCriterion("reservestates like", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesNotLike(String value) {
            addCriterion("reservestates not like", value, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesIn(List<String> values) {
            addCriterion("reservestates in", values, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesNotIn(List<String> values) {
            addCriterion("reservestates not in", values, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesBetween(String value1, String value2) {
            addCriterion("reservestates between", value1, value2, "reservestates");
            return (Criteria) this;
        }

        public Criteria andReservestatesNotBetween(String value1, String value2) {
            addCriterion("reservestates not between", value1, value2, "reservestates");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}